﻿using System;
using System.Runtime.Serialization;

namespace Tp.Dto
{
	public class EmployeeDto
	{
		#region Properties
		[DataMember]
		public int EmployeeDtoId { get; set; }

		[DataMember]
		public string Firstname { get; set; }

		[DataMember]
		public string Lastname { get; set; }

		[DataMember]
		public DateTime DoB { get; set; }

		[DataMember]
		public string Street { get; set; }

		[DataMember]
		public string Hausnumber { get; set; }

		[DataMember]
		public string ZIP { get; set; }

		[DataMember]
		public string City { get; set; }

		[DataMember]
		public string State { get; set; }

		[DataMember]
		public DepartmentDto Department { get; set; }

		[DataMember]
		public TitleDto Title { get; set; }
		#endregion

		#region C-Tor
		public EmployeeDto(
			int employeeId, 
			string firstname, 
			string lastname, 
			DateTime dob, 
			string street, 
			string hausnumber, 
			string zip,
			string city, 
			string state, 
			DepartmentDto department, 
			TitleDto title)
		{
			this.EmployeeDtoId = employeeId;
			this.Firstname = firstname;
			this.Lastname = lastname;
			this.DoB = dob;
			this.Street = street;
			this.Hausnumber = hausnumber;
			this.ZIP = zip;
			this.City = city;
			this.State = state;
			this.Department = department;
			this.Title = title;
		}
		#endregion
	}
}
